package com.hyy.springbootblog.common.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class AddBlogParam {

    @NotNull(message = "作者ID不能为空")
    private Integer userId;

    @NotBlank(message = "标题不能为空")
    @Length(max=60,message = "标题字数不能超过60个字")
    private String title;

    @NotBlank(message = "内容不能为空")
    private String content;
}
